package cn.b.sky.mes.mm.model;

import java.util.Set;

import cn.b.sky.common.model.ImeCommon;
import cn.b.sky.user.service.model.User;

/**
 * 
 * <strong>Title : MessageConfig.java<br></strong>
 * <strong>Package : cn.b.sky.mes.mm.model<br></strong>
 * <strong>Description : </strong>消息配置<br> 
 * <strong>Create on : 2016年9月10日 下午1:20:23<br></strong>
 * <p>
 * @author dapeng.li<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人|修改日期|修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class MessageConfig extends ImeCommon {
  /**
   * 主键
   */
  private Long id;

  /**
   * 工作中心编码
   */
  private String workcenterCode;

  /**
   * 作业单元编码
   */
  private String workunitCode;

  /**
   * 策略描述
   */
  private String strategyText;

  /**
   * 事件编码
   */
  private String eventCode;

  /**
   * 超时
   */
  private Integer overtime;

  /**
   * 消息发送人
   */
  private Set<User> receivers;

  /**
   * 站内消息发送标记
   */
  private Integer instantMessageFlag;

  /**
   * 邮件消息发送标记
   */
  private Integer emailMessageFlag;

  /**
   * 锁定标记
   */
  private Integer lockFlag;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getWorkcenterCode() {
    return workcenterCode;
  }

  public void setWorkcenterCode(String workcenterCode) {
    this.workcenterCode = workcenterCode;
  }

  public String getWorkunitCode() {
    return workunitCode;
  }

  public void setWorkunitCode(String workunitCode) {
    this.workunitCode = workunitCode;
  }

  public String getStrategyText() {
    return strategyText;
  }

  public void setStrategyText(String strategyText) {
    this.strategyText = strategyText;
  }

  public String getEventCode() {
    return eventCode;
  }

  public void setEventCode(String eventCode) {
    this.eventCode = eventCode;
  }

  public Integer getOvertime() {
    return overtime;
  }

  public void setOvertime(Integer overtime) {
    this.overtime = overtime;
  }

  public Set<User> getReceivers() {
    return receivers;
  }

  public void setReceivers(Set<User> receivers) {
    this.receivers = receivers;
  }

  public Integer getInstantMessageFlag() {
    return instantMessageFlag;
  }

  public void setInstantMessageFlag(Integer instantMessageFlag) {
    this.instantMessageFlag = instantMessageFlag;
  }

  public Integer getEmailMessageFlag() {
    return emailMessageFlag;
  }

  public void setEmailMessageFlag(Integer emailMessageFlag) {
    this.emailMessageFlag = emailMessageFlag;
  }

  public Integer getLockFlag() {
    return lockFlag;
  }

  public void setLockFlag(Integer lockFlag) {
    this.lockFlag = lockFlag;
  }
}
